package com.jiyun.controller;


import com.jiyun.entity.HotelRooms;
import com.jiyun.service.IHotelRoomsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 23052
 * @since 2025-02-18
 */
@RestController
@RequestMapping("/hotel")
public class HotelRoomsController {
    @Autowired
    private IHotelRoomsService hotelRoomsService;

    @GetMapping("/findAll")
    public List<HotelRooms>  findHotelRooms(){
        return hotelRoomsService.list();
    }

}
